package com.zhumr.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhumr.dao.ScriptInfoMapper;
import com.zhumr.model.ScriptInfo;
import com.zhumr.service.IScriptInfoService;

@Service("scriptService")
public class ScriptInfoServiceImpl implements IScriptInfoService {
	@Autowired
	private ScriptInfoMapper scriptMapper;

	public List<ScriptInfo> getAllScript(Map<String, Object> map) {

		return scriptMapper.getAllScript(map);
	}

	@Override
	public ScriptInfo getScriptById(int id) {

		return scriptMapper.getScriptById(id);
	}

}
